package com.daedalus.Inheritanca.PersonTaksa;

import java.util.ArrayList;

/**
 * Created with IntelliJ IDEA.
 * User: kostika
 * Date: 12/19/12
 * Time: 11:40 AM
 * To change this template use File | Settings | File Templates.
 */
public class Main {
    public static void main(String[] args){

        ArrayList<Person> personat = new ArrayList<Person>();

        personat.add(new Person("Person1","iThjeshte",25, "1989.02.30",'M',20000));
        personat.add(new Student("Student1","Student",20, "1991.05.25",'M',25000,"UPT","FTI"));
        personat.add(new Punetor("Punetor1","Punesuar",25, "1965.05.30",'M',25000,true));
        personat.add(new Punetor("Punetor2","PaPunesuar",25, "1965.05.30",'F',35000,false));
        personat.add(new Pensionist("Pensionist1","iTakon",66, "1930.05.30",'M',25000,2005));
        personat.add(new Pensionist("Pensionist2","nukTakon",63, "1930.05.30",'M',25000,2005));
        personat.add(new Pensionist("Pensionist3","iTakon",61, "1930.05.30",'F',25000,2005));
        personat.add(new Pensionist("Pensionist4","iTakon",65, "1930.05.30",'F',15000,2005));

        for (Person ps : personat){
            System.out.println(ps);
        }
    }
}
